﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using LitJson;
public class marqueeDataS2C
{
    private int ret;
    private Dictionary<string, marqueeItemData> marqueeListData;
    public marqueeDataS2C(string backData) {
        JsonData jd = JsonMapper.ToObject(backData);
        this.ret = (int)jd["ret"];
        if (ret == 0)
        {
            this.marqueeListData = new Dictionary<string, marqueeItemData> { };
            JsonData jdMarqueeList = jd["list"];
            for (int i = 0; i < jdMarqueeList.Count; i++)
            {
                marqueeItemData data = new marqueeItemData(jdMarqueeList[i]);
                this.marqueeListData["marqueeItem" + i] = data;
            }
        }
    }
    public Dictionary<string, marqueeItemData> getMarqueeList()
    {
        return marqueeListData;
    }
	
}
public class marqueeItemData
{
    public string marqueeDes;
    public marqueeItemData(JsonData itemData)
    {
        this.marqueeDes = (string)itemData["marqueeDes"];
    }


}
